package com.tourism.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tourism.entity.TourRoute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TourRouteMapper extends BaseMapper<TourRoute> {
    @Select("SELECT * FROM tour_route WHERE user_id = #{userId}")
    List<TourRoute> findByUserId(Integer userId);
}